﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Collections;
using System.Windows.Forms;

namespace DataTreeLib
{
  public class NodeSorter : IComparer
  {
    #region IComparer Members

    public int Compare(object x, object y)
    {
      TreeNode tx = x as TreeNode;
      TreeNode ty = y as TreeNode;

      return string.Compare(tx.Text, ty.Text);
    }

    #endregion
  }
}
